<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <form th:action="@{/updateInfo}" method="post" enctype="multipart/form-data">
            id:<input type="text" name="id" th:value="${empinfo.id}" readOnly="true" style="border:none;"><br>
        员工名：<input type="text" name="name" th:value="${empinfo.name}"><br>

        照片：<img th:src="@{'img/'+${empinfo.path}}" width="50px" height="50px">
              <input type="file" name="photoName" ><br>

        工资：<input type="text" name="salary" th:value="${empinfo.salary}" oninput="value=value.replace(/[^\d]/g,'')"><br>

        年龄：<input type="text" name="age" th:value="${empinfo.age}" oninput="value=value.replace(/[^\d]/g,'')"><br>

        <input type="submit" name="" value="提交" >

    </form>
</body>
</html>